#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif

void Test1() {
    int ret = Solution().reverse(123);
    if (ret == 321) {
        std::cout << "Test1 ok!" << std::endl;
    } else {
        std::cout << "Test1 failed! input: 123, output expected 321, actual " << ret << std::endl;
    }
}

void Test2() {
    int ret = Solution().reverse(-123);
    if (ret == -321) {
        std::cout << "Test2 ok!" << std::endl;
    } else {
        std::cout << "Test2 failed! input: -123, output expected -321, actual " << ret << std::endl;
    }
}

void Test3() {
    int ret = Solution().reverse(120);
    if (ret == 21) {
        std::cout << "Test3 ok!" << std::endl;
    } else {
        std::cout << "Test3 failed! input: 120, output expected 21, actual " << ret << std::endl;
    }
}

void Test4() {
    int ret = Solution().reverse(0);
    if (ret == 0) {
        std::cout << "Test4 ok!" << std::endl;
    } else {
        std::cout << "Test4 failed! input: 0, output expected 0, actual " << ret << std::endl;
    }
}

void Test5() {
    int ret = Solution().reverse(1534236469);
    if (ret == 0) {
        std::cout << "Test5 ok!" << std::endl;
    } else {
        std::cout << "Test5 failed! input: 1534236469, output expected 0, actual " << ret << std::endl;
    }
}

int main() {
    Test1();
    Test2();
    Test3();
    Test4();
    Test5();
    return 0;
}